package com.lams.util;

import java.util.List;

public class TreeEntity {
	private String id;
	private String text;
	private String clazz;
	private String url;
	private boolean leaf = false;
	private boolean expanded = false;
	private List<TreeEntity> children ;
	private boolean isChecked;
	private String className;
	public TreeEntity(){		
	}
	public TreeEntity(int id,String text){
		this.setId(id);
		this.setText(text);
	}
	public TreeEntity(Integer id,String text){
		this.setId(id);
		this.setText(text);
	}
	public TreeEntity(String id,String text){
		this.setId(id);
		this.setText(text);
	}
	public TreeEntity(int id,String text,String url){
		this.setId(id);
		this.setText(text);
		this.setUrl(url);
	}
	public TreeEntity(Integer id,String text,String url,List<TreeEntity> children){
		this.setId(id);
		this.setText(text);
		this.setUrl(url);
		this.setChildren(children);
	}
	

	public boolean isChecked() {
		return isChecked;
	}
	public void setChecked(boolean isChecked) {
		this.isChecked = isChecked;
	}
	public String getClazz() {
		return clazz;
	}
	public void setClazz(String clazz) {
		this.clazz = clazz;
	}
	public String getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = String.valueOf(id);
	}
	public void setId(int id){
		this.id = String.valueOf(id);
	}
	public void setId(String id){
		this.id = id;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public List<TreeEntity> getChildren() {
		return children;
	}
	public void setChildren(List<TreeEntity> childrens) {
		this.children = childrens;
	}
	public boolean isLeaf() {
		return leaf;
	}
	public void setLeaf(boolean leaf) {
		this.leaf = leaf;
	}
	public boolean isExpanded() {
		return expanded;
	}
	public void setExpanded(boolean expanded) {
		this.expanded = expanded;
	}
	public String getClassName() {
		return className;
	}
	public void setClassName(String className) {
		this.className = className;
	}
	
}
